package com.tiancheng.trade.payment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.payment.model.PaymentFlowDetailSettle;
import com.tiancheng.trade.payment.model.RefundSettle;

import java.time.LocalDate;
import java.util.List;
import java.util.Set;

/**
 * 退款结算表
 */
public interface IRefundSettleService extends IService<RefundSettle> {

    /**
     * 当前等待轧差的退款结算单
     * @param expectSettleDate
     * @param payChannel
     * @param current
     * @param size
     * @return
     */
    IPage<RefundSettle> listWaitSettles(LocalDate expectSettleDate, String payChannel, long current, long size);

    /**
     * 已结算完成的退款结算单
     * @param refundSettleIds
     * @return
     */
    List<RefundSettle> completedSettles(Set<Long> refundSettleIds);
}
